<?php
/**
 * Created by PhpStorm.
 * User: luojinyi
 * Date: 2018/3/10
 * Time: 下午6:41
 */

namespace App\Http\Transformers;


use App\Models\Permissions;
use League\Fractal\TransformerAbstract;
use Spatie\Permission\Models\Permission;

class PermissionTransformer extends TransformerAbstract
{
    public function transform(Permissions $permission)
    {
        return $permission->toArray();
    }
}
